<template>
    <div class="container">
        <Head :title="title" :type="type" />
        <div class="evaluate">
            <p>请对本次服务进行评价</p>
            <van-rate v-model="rate" :size="25" color="#ffd21e" />
        </div>
        <div class="field">
            <van-field
                v-model="message"
                rows="6"
                type="textarea"
                maxlength="300"
                placeholder="请输入留言"
                show-word-limit
                class="fieldContent"
            />
            <p>(注：内容最多可填写300个字)</p>
        </div>
        <div class="submit">
            <button>提交</button>
        </div>
    </div>
</template>

<script>
import Head from "@/components/head.vue";
export default {
    components: {
        Head,
    },
    data() {
        return {
            title: "意见反馈",
            rate: 0,
            message: null,
            type:2,
        };
    },
};
</script>

<style lang="less" scoped>
.container {
    .evaluate {
        margin: 20px 0;
        width: 100%;
        text-align: center;
        p {
            font-size: 18px;
            color: #000000;
            margin-bottom: 20px;
        }
    }
    .field {
        padding: 0 20px;
        .fieldContent {
            border: 1px solid #999999;
        }
        p {
            margin-top: 5px;
            font-size: 12px;
            color: #f42929;
        }
    }
    .submit {
        margin: 16px 0;
        width: 100%;
        text-align: center;
        button {
            width: 196px;
            height: 30px;
            font-size: 15px;
            color: #fff;
            background-color: #00a0e9;
            border-radius: 5px;
        }
    }
}
</style>